package org.darkforest.dao.mapper;

import java.util.List;
import java.util.Map;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Complain;
import org.darkforest.model.ComplainSearchBean;
import org.darkforest.model.ComplainVo;
@DBMapper
public interface ComplainMapper {
    int deleteByPrimaryKey(Integer complainId);

    int deleteByIds(List nList);

    int insert(Complain record);

    int insertSelective(Complain record);

    ComplainVo selectByPrimaryKey(Integer complainId);

    int updateByPrimaryKeySelective(Complain record);

    int updateByPrimaryKey(Complain record);
    
    List<ComplainVo> selectByMember(ComplainSearchBean page);
    
    ComplainVo selectByOrderGood(Map<String, Object> p);

    List<ComplainVo> selectByCondition(ComplainSearchBean page);

    List<ComplainVo> selectComplainForMerchant(ComplainSearchBean page);

}